package com.lastapp;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootCompletedReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
	if(PreferenceUtil.getInstance(context).getBoolean("open", true)){
	    Intent service=new Intent(context, WindowService.class);
	    context.startService(service);
	}
    }
}